<?php

class TestController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
    }

    public function createAdminAction()
    {
        $adminMapper = new Application_Model_AdminUserMapper();
        $adminModel = new Application_Model_AdminUser();

        $adminModel->setIme('Marko');
        $adminModel->setPriimek('Ambrozic');
        $adminModel->getEmso(3008990500306);
        $adminModel->setGeslo(password_hash(123123123, PASSWORD_DEFAULT));

        try {
            $adminMapper->save($adminModel);
            echo "Admin created successfully";
        } catch (Exception $e) {
            echo "Error creating admin: ".$e->getMessage();
        }

    }


}



